<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>欢迎界面</title>
    <link rel="stylesheet" th:href="@{/css/welcome.css}">
</head>
<body>
<center style="color: #fff;font-size: 50px">欢迎使用自习室预定系统</center>
<div class="all" th:if="${user.role} eq '学生'">
    <div style="font-size: 20px;line-height: 40px;">
        <span>友情提醒:</span>
        <span style="color: red">请按时去学习,如因谈恋爱等不可抗因素请及时退订,请勿妨碍他人学习!</span>
    </div>
    <div>
        <div class="item" th:each="item,userStat:${list}">
            <span th:text="${item.startTime + ':00-' + item.endTime + ':00'}"></span>&nbsp;&nbsp;&nbsp;
            <span th:text="${item.classnoomName} + '自习室'"></span>&nbsp;&nbsp;
            <span th:text="'第' + ${item.seatNo} + '号座位'"></span>&nbsp;&nbsp;
        </div>
    </div>
</div>
</body>
</html>
